SET(HTTPPARSER_SRC
  http_parser.c
)

ADD_LIBRARY(http_parserShared SHARED ${HTTPPARSER_SRC})
ADD_LIBRARY(http_parserStatic STATIC ${HTTPPARSER_SRC})
set_target_properties(http_parserShared PROPERTIES OUTPUT_NAME http_parser)
set_target_properties(http_parserStatic PROPERTIES OUTPUT_NAME http_parser_static)

INSTALL(FILES http_parser.h
	DESTINATION include/fermat/ext/http_parser
	)
INSTALL(TARGETS http_parserShared http_parserStatic
	RUNTIME DESTINATION bin
	ARCHIVE DESTINATION lib
	LIBRARY DESTINATION lib
	)

